#include <iostream>
#include <fstream>
#include <string>

int main(int argc, char* argv[])
{
	// Check for sufficient arguments
	if (argc < 3)
	{
		return -1;
	}

	// Open input file
	std::string srcFilename( argv[1] );
	std::ifstream src( srcFilename );
	if( !src.isOpen )
	{
		return -1;
	}

	// Open output cpp file
	std::string dstCppFilename( argv[2] );
	dstCppFilename += ".cpp";
	std::ofstream dstCpp( dstCppFilename );
	if ( !dstCpp.isOpen )
	{
		return -1;
	}
	
	// Open output header file
	std::string dstHdrFilename( argv[2] );
	dstHdrFilename += ".h";
	std::ofstream dstHdr( dstHdrFilename );
	if ( !dstHdr.isOpen )
	{
		return -1;
	}
	
	// Do processing of source file
	// TODO: fill this in
	
	// Close all files
	src.close();
	dstCpp.close();
	dstHdr.close();
}
